<template>
  <div class="wrapper flex-v">
    <span>我的订单</span>
    <div class="flex-h flex-hsb entry-wrapper">
      <div
        class="flex-v flex-vc entry-cell-entry"
        v-for="(item,index) in dataList"
        v-bind:key="index"
        @click="jump(item.url)"
      >
        <img :src="item.icon" />
        <span>{{item.name}}</span>
      </div>
    </div>
  </div>
</template>

<script>
import { open } from '@/utils/JumpUtils.js'
export default {
  data() {
    return {
      dataList: []
    }
  },
  mounted() {
    this.dataList.push({ icon: require('../assets/2pay.png'), name: '待付款', url: 'module=shop-app&page=orderlist&needlogin=true&select=1&_sel=1' })
    this.dataList.push({ icon: require('../assets/2delivery.png'), name: '待发货', url: 'module=shop-app&page=orderlist&needlogin=true&select=2&_sel=2' })
    this.dataList.push({ icon: require('../assets/2receive.png'), name: '已发货', url: 'module=shop-app&page=orderlist&needlogin=true&select=3&_sel=3' })
    this.dataList.push({ icon: require('../assets/2comment.png'), name: '待评价', url: 'module=shop-app&page=orderlist&needlogin=true&select=4&_sel=4' })
    this.dataList.push({ icon: require('../assets/refund.png'), name: '售后服务', url: 'module=shop-app&page=refundlist&needlogin=true' })
  },
  methods: {
    jump: function (url) {
      open(url)
    }
  }
}
</script>

<style scoped>
.wrapper {
  width: 750px;
  height: 233px;
  background: #fff;
}
.wrapper > span:first-of-type {
  font-size: 12px; /*no*/
  line-height: 16px; /*no*/
  color: #333;
  margin: 20px 0px 0px 30px;
  font-weight: bold;
}

.entry-cell-entry {
  width: 110px;
  height: 180px;
  color: #000;
  margin: 20px 0px;
}

.entry-cell-entry > img {
  height: 80px;
  width: 80px;
}
.entry-cell-entry > span {
  font-size: 11px; /*no*/
  line-height: 15px; /*no*/
  color: #666;
  margin-top: 18px;
}

.entry-wrapper > div:first-of-type {
  margin-left: 30px;
}
.entry-wrapper > div:nth-of-type(5) {
  margin-right: 30px;
}
</style>
